GUI Help > Special > addImageListItem

addImageListItem
addImageListItem handle imageList, [str filename] | [int imageId]

Description:
Adds a new item to an image list. The item must be the correct width and height, as specified in createImageList

Return Value:


Parameters:
imageList Handle to an image list
fileName If specified, a bitmap file which is loaded into the image list.
imageId If specified, the id of a DBPro image to load into the image list.

Important: You must enable the texture flag on the image when you load it. Eg: LOAD IMAGE fileName$,imageId,1 or GET IMAGE imageId,0,0,128,128,1
You must also use a memblock command somewhere in your program in order to load a DBPro image. This does not have to be in any code which is actually run, but it must be there in your code to force the compiler to load the Memblocks DLL.
Remarks:


See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)